( toolbox )

$e10000 constant dispatch

[ifdef] xsave
: tool ( callnum outwords inwords "" -- )
  drop drop 1 0 const-does>
    ( call dispatcher )
    xsave @d stx,
    # ldx,
    dispatch @al jsl,
    xsave @d ldx, ;
[else]
: tool ( callnum outwords inwords "" -- )
    drop drop 1 0 const-does>
    # ldx,
    dispatch @al jsl, ;
[then]

( tool locator )
$0101 $0 $0 tool TLBootInit
$0201 $0 $0 tool TLStartUp
$0301 $0 $0 tool TLShutDown
$0401 $1 $0 tool TLVersion
$0501 $0 $0 tool TLReset
$0601 $1 $0 tool TLStatus
$0b01 $2 $2 tool GetFuncPtr
$0901 $2 $2 tool GetTSPtr
$0c01 $2 $2 tool GetWAP
$0f01 $0 $2 tool LoadOneTool
$0e01 $0 $2 tool LoadTools
$1501 $0 $4 tool MessageCenter
$1401 $0 $2 tool RestoreTextState
$1301 $2 $0 tool SaveTextState
$0a01 $0 $4 tool SetTSPtr
$0d01 $0 $4 tool SetWAP
$1101 $1 $a tool TLMountVolume
$1201 $1 $8 tool TLTextMountVolume
$1001 $0 $1 tool UnloadOneTool

$1701 $2 $3 tool MessageByName
$1601 $0 $0 tool SetDefaultTPT
$1901 $0 $3 tool ShutDownTools
$1801 $2 $4 tool StartUpTools

( memory manager )
$0102 $0 $0 tool MMBootInit
$0202 $1 $0 tool MMStartUp
$0302 $0 $1 tool MMShutDown
$0402 $1 $0 tool MMVersion
$0502 $0 $0 tool MMReset
$0602 $1 $0 tool MMStatux
$2b02 $0 $6 tool BlockMove
$1e02 $0 $2 tool CheckHandle
$1f02 $0 $0 tool CompactMem
$1102 $0 $1 tool DisposeAll
$1002 $0 $2 tool DisposeHandle
$1a02 $2 $2 tool FindHandle
$1b02 $2 $0 tool FreeMem
$1802 $2 $2 tool GetHandleSize
$2a02 $0 $6 tool HandToHand
$2902 $0 $6 tool HandToPtr
$2002 $0 $2 tool HLock
$2102 $0 $1 tool HLockAll
$2202 $0 $2 tool HUnlock
$2302 $0 $1 tool HUnlockAll
$1c02 $2 $0 tool MaxBlock
$0902 $2 $6 tool NewHandle
$2802 $0 $6 tool PtrToHand
$1302 $0 $1 tool PurgeAll
$1202 $0 $2 tool PurgeHandle
$0a02 $0 $8 tool ReAllocHandle
$0b02 $0 $2 tool RestoreHandle
$1902 $0 $4 tool SetHandleSize
$2402 $0 $3 tool SetPurge
$2502 $0 $2 tool SetPurgeAll
$1d02 $2 $0 tool TotalMem

( memory attributes )
$8000 constant attrLocked
$4000 constant attrFixed
$2000 constant attrSystem
$1000 constant attrHandle
$0300 constant attrPurge
$0300 constant attrPurge3
$0200 constant attrPurge2
$0100 constant attrPurge1
$0010 constant attrNoCross
$0008 constant attrNoSpec
$0004 constant attrPage
$0002 constant attrAddr
$0001 constant attrBank
$0000 constant attrNoPurge

( miscellaneous tool set )
$0103 $0 $0 tool MTBootInit
$0203 $0 $0 tool MTStartUp
$0303 $0 $0 tool MTShutDown
$0403 $1 $0 tool MTVersion
$0503 $0 $0 tool MTReset
$0603 $1 $0 tool MTStatus
$0903 $0 $2 tool WriteBRam
$0a03 $0 $2 tool ReadBRam
$0b03 $0 $2 tool WriteBParam
$0c03 $1 $1 tool ReadBParam
$0d03 $4 $0 tool ReadTimeHex
$0e03 $0 $3 tool WriteTimeHex
$0f03 $0 $2 tool ReadAsciiTime
$2403 $4 $4 tool FWEntry
$1603 $2 $1 tool GetAddr
$2503 $2 $0 tool GetTick
$2903 $1 $0 tool GetIRQEnable
$2303 $0 $1 tool IntSource
$1c03 $0 $4 tool ClampMouse
$1b03 $0 $0 tool ClearMouse
$1d03 $4 $0 tool GetMouseClamp
$1a03 $0 $0 tool HomeMouse
$1803 $0 $1 tool InitMouse
$1e03 $0 $2 tool PosMouse
$1703 $3 $0 tool ReadMouse
$1f03 $1 $0 tool ServeMouse
$1903 $0 $1 tool SetMouse
$2a03 $0 $4 tool SetAbsClamp
$2b03 $4 $0 tool GetAbsClamp
$2603 $1 $7 tool PackBytes
$2703 $1 $7 tool UnPackBytes
$2803 $1 $c tool Munger
$1203 $0 $2 tool SetHeartBeat
$1303 $0 $2 tool DelHeartBeat
$1403 $0 $0 tool ClrHeartBeat
$2c03 $0 $0 tool SysBeep
$1503 $0 $3 tool SysFailMgr
$2003 $1 $1 tool GetNewID
$2103 $0 $1 tool DeleteID
$2203 $0 $1 tool StatusID
$1003 $0 $3 tool SetVector
$1103 $2 $1 tool GetVector

( quickdraw ii )
$0104 $0 $0 tool QDBootInit
$0204 $0 $4 tool QDStartUp
$0304 $0 $0 tool QDShutDown
$0404 $1 $0 tool QDVersion
$0504 $0 $0 tool QDReset
$0604 $1 $0 tool QDStatus
$8004 $0 $4 tool AddPt
$ac04 $0 $3 tool CharBounds
$a804 $1 $1 tool CharWidth
$1504 $0 $1 tool ClearScreen
$2604 $0 $2 tool ClipRect
$c204 $0 $0 tool ClosePoly
$1a04 $0 $2 tool ClosePort
$6e04 $0 $2 tool CloseRgn
$6904 $0 $4 tool CopyRgn
$ae04 $0 $4 tool CStringBounds
$aa04 $1 $2 tool CStringWidth
$7304 $0 $6 tool DiffRgn
$6804 $0 $2 tool DisposeRgn
$a404 $0 $1 tool DrawChar
$a604 $0 $2 tool DrawCString
$a504 $0 $2 tool DrawString
$a704 $0 $3 tool DrawText
$7804 $1 $2 tool EmptyRgn
$8304 $1 $4 tool EqualPt
$5104 $1 $4 tool EqualRect
$7704 $1 $4 tool EqualRgn
$6404 $0 $4 tool EraseArc
$5a04 $0 $2 tool EraseOval
$be04 $0 $2 tool ErasePoly
$5504 $0 $2 tool EraseRect
$7b04 $0 $2 tool EraseRgn
$5f04 $0 $4 tool EraseRRect
$6604 $0 $6 tool FillArc
$5c04 $0 $4 tool FillOval
$c004 $0 $4 tool FillPoly
$5704 $0 $4 tool FillRect
$7d04 $0 $4 tool FillRgn
$6104 $0 $6 tool FillRRect
$cc04 $0 $3 tool ForceBufDims
$6204 $0 $4 tool FrameArc
$5804 $0 $2 tool FrameOval
$bc04 $0 $2 tool FramePoly
$5304 $0 $2 tool FrameRect
$7904 $0 $2 tool FrameRgn
$5d04 $0 $4 tool FrameRRect
$0904 $2 $1 tool GetAddress
$b104 $1 $0 tool GetArcRot
$a304 $1 $0 tool GetBackColor
$3504 $0 $2 tool GetBackPat
$d504 $2 $0 tool GetCharExtra
$2504 $0 $2 tool GetClip
$c704 $2 $0 tool GetClipHandle
$1104 $1 $2 tool GetColorEntry
$0f04 $0 $3 tool GetColorTable
$8f04 $2 $0 tool GetCursorAdr
$cf04 $1 $0 tool GetFGSize
$9504 $2 $0 tool GetFont
$9904 $1 $0 tool GetFontFlags
$9704 $0 $2 tool GetFontGlobals
$d104 $2 $0 tool GetFontID
$9604 $0 $2 tool GetFontInfo
$d904 $1 $3 tool GetFontLore
$a104 $1 $0 tool GetForeColor
$4504 $2 $0 tool GetGrafProcs
$1704 $1 $0 tool GetMasterSCB
$2904 $0 $2 tool GetPen
$3304 $0 $2 tool GetPenMask
$2f04 $1 $0 tool GetPenMode
$3104 $0 $2 tool GetPenPat
$2d04 $0 $2 tool GetPenSize
$2b04 $0 $2 tool GetPenState
$3f04 $2 $0 tool GetPicSave
$8804 $1 $2 tool GetPixel
$4304 $2 $0 tool GetPolySave
$1c04 $2 $0 tool GetPort
$1e04 $0 $2 tool GetPortLoc
$2004 $0 $2 tool GetPortRect
$4104 $2 $0 tool GetRgnSave
$d804 $0 $2 tool GetRomFont
$1304 $1 $1 tool GetSCB
$9f04 $2 $0 tool GetSpaceExtra
$0c04 $1 $0 tool GetStandardSCB
$4904 $2 $0 tool GetSysField
$b304 $2 $0 tool GetSysFont
$9b04 $1 $0 tool GetTextFace
$9d04 $1 $0 tool GetTextMode
$d304 $1 $0 tool GetTextSize
$4704 $2 $0 tool GetUserField
$c904 $2 $0 tool GetVisHandle
$b504 $0 $2 tool GetVisRgn
$8504 $0 $2 tool GlobaltoLocal
$0b04 $0 $0 tool GrafOff
$0a04 $0 $0 tool GrafOn
$9004 $0 $0 tool HideCursor
$2704 $0 $0 tool HidePen
$d704 $0 $2 tool InflateTextBuffer
$0d04 $0 $2 tool InitColorTable
$ca04 $0 $0 tool InitCursor
$1904 $0 $2 tool InitPort
$4c04 $0 $4 tool InsetRect
$7004 $0 $4 tool InsetRgn
$6504 $0 $4 tool InvertArc
$5b04 $0 $2 tool InvertOval
$bf04 $0 $2 tool InvertPoly
$5604 $0 $2 tool InvertRect
$7c04 $0 $2 tool InvertRgn
$6004 $0 $4 tool InvertRRect
$c304 $0 $2 tool KillPoly
$3d04 $0 $2 tool Line
$3c04 $0 $2 tool LineTo
$8404 $0 $2 tool LocalToGlobal
$c504 $0 $6 tool MapPoly
$8a04 $0 $6 tool MapPt
$8b04 $0 $6 tool MapRect
$8c04 $0 $6 tool MapRgn
$3b04 $0 $2 tool Move
$2204 $0 $2 tool MovePortTo
$3a04 $0 $2 tool MoveTo
$6704 $2 $0 tool NewRgn
$5204 $1 $2 tool NotEmptyRect
$9204 $0 $0 tool ObscureCursor
$c404 $0 $4 tool OffsetPoly
$4b04 $0 $4 tool OffsetRect
$6f04 $0 $4 tool OffsetRgn
$c104 $2 $0 tool OpenPoly
$1804 $0 $2 tool OpenPort
$6d04 $0 $0 tool OpenRgn
$6304 $0 $4 tool PaintArc
$5904 $0 $2 tool PaintOval
$7f04 $0 $2 tool PaintPixels
$bd04 $0 $2 tool PaintPoly
$5404 $0 $2 tool PaintRect
$7a04 $0 $2 tool PaintRgn
$5e04 $0 $4 tool PaintRRect
$3604 $0 $0 tool PenNormal
$d604 $0 $7 tool PPToPort
$5004 $0 $6 tool Pt2Rect
$4f04 $1 $4 tool PtInRect
$7504 $1 $4 tool PtInRgn
$8604 $1 $0 tool Random
$7604 $1 $4 tool RectInRgn
$6c04 $0 $4 tool RectRgn
$ce04 $0 $2 tool RestoreBufDims
$cd04 $0 $2 tool SaveBufDims
$8904 $0 $6 tool ScalePt
$7e04 $0 $6 tool ScrollRect
$4d04 $1 $6 tool SectRect
$7104 $0 $6 tool SectRgn
$1404 $0 $1 tool SetAllSCBs
$b004 $0 $1 tool SetArcRot
$a204 $0 $1 tool SetBackColor
$3404 $0 $2 tool SetBackPat
$cb04 $0 $3 tool SetBufDims
$d404 $0 $2 tool SetCharExtra
$2404 $0 $2 tool SetClip
$c604 $0 $2 tool SetClipHandle
$1004 $0 $3 tool SetColorEntry
$0e04 $0 $3 tool SetColorTable
$8e04 $0 $2 tool SetCursor
$6a04 $0 $2 tool SetEmptyRgn
$9404 $0 $2 tool SetFont
$9804 $0 $1 tool SetFontFlags
$d004 $0 $2 tool SetFontID
$a004 $0 $1 tool SetForeColor
$4404 $0 $2 tool SetGrafProcs
$b604 $0 $1 tool SetIntUse
$1604 $0 $1 tool SetMasterSCB
$2304 $0 $2 tool SetOrigin
$3204 $0 $2 tool SetPenMask
$2e04 $0 $1 tool SetPenMode
$3004 $0 $2 tool SetPenPat
$2c04 $0 $2 tool SetPenSize
$2a04 $0 $2 tool SetPenState
$3e04 $0 $2 tool SetPicSave
$4204 $0 $2 tool SetPolySave
$1b04 $0 $2 tool SetPort
$1d04 $0 $2 tool SetPortLoc
$1f04 $0 $2 tool SetPortRect
$2104 $0 $2 tool SetPortSize
$8204 $0 $4 tool SetPt
$8704 $0 $2 tool SetRandSeed
$4a04 $0 $6 tool SetRect
$6b04 $0 $6 tool SetRectRgn
$4004 $0 $2 tool SetRgnSave
$1204 $0 $2 tool SetSCB
$3804 $0 $1 tool SetSolidBackPat
$3704 $0 $1 tool SetSolidPenPat
$9e04 $0 $2 tool SetSpaceExtra
$8d04 $0 $2 tool SetStdProcs
$4804 $0 $2 tool SetSysField
$b204 $0 $2 tool SetSysFont
$9a04 $0 $1 tool SetTextFace
$9c04 $0 $1 tool SetTextMode
$d204 $0 $1 tool SetTextSize
$4604 $0 $2 tool SetUserField
$c804 $0 $2 tool SetVisHandle
$b404 $0 $2 tool SetVisRgn
$9104 $0 $0 tool ShowCursor
$2804 $0 $0 tool ShowPen
$3904 $0 $3 tool SolidPattern
$ad04 $0 $4 tool StringBounds
$a904 $1 $2 tool StringWidth
$8104 $0 $4 tool SubPt
$af04 $0 $5 tool TextBounds
$ab04 $1 $3 tool TextWidth
$4e04 $0 $6 tool UnionRect
$7204 $0 $6 tool UnionRgn
$7404 $0 $6 tool XorRgn

$00 constant mode320
$80 constant mode640

struct
  word% field point>y
  word% field point>x
end-struct point%

struct
  word% field rect>top
  word% field rect>left
  word% field rect>bottom
  word% field rect>right
end-struct rect%

struct
  word%    field LocInfo>portSCB
  pointer% field LocInfo>ptrToPixImage
  word%    field LocInfo>width
  rect%    field LocInfo>boundsRect
end-struct LocInfo%

struct
  LocInfo%    field GrafPort>portInfo
  rect%       field GrafPort>portRect
  handle%     field GrafPort>clipRgn
  handle%     field GrafPort>visRgn
  char% $20 * field GrafPort>bkPat
  point%      field GrafPort>pnLoc
  point%      field GrafPort>pnSize
  word%       field GrafPort>pnMode
  char% $20 * field GrafPort>pnPat
  char% $8 *  field GrafPort>pnMask
  word%       field GrafPort>pnVis
  handle%     field GrafPort>fontHandle
  long%       field GrafPort>fontID
  word%       field GrafPort>fontFlags
  word%       field GrafPort>txSize
  word%       field GrafPort>txFace
  word%       field GrafPort>txMode
  long%       field GrafPort>spExtra
  long%       field GrafPort>chExtra
  word%       field GrafPort>fgColor
  word%       field GrafPort>bgColor
  handle%     field GrafPort>picSave
  handle%     field GrafPort>rgnSave
  handle%     field GrafPort>polySave
  pointer%    field GrafPort>grafProcs
  word%       field GrafPort>arcRot
  long%       field GrafPort>userField
  long%       field GrafPort>sysField
end-struct GrafPort%

( pen modes )
$0000 constant modeCopy
$8000 constant notCopy
$0001 constant modeOR
$8001 constant notOR
$0002 constant modeXOR
$8002 constant notXOR
$0003 constant modeBIC
$8003 constant notBIC

$0004 constant modeForeCopy
$8004 constant notForeCopy
$0005 constant modeForeOR
$8005 constant notForeOR
$0006 constant modeForeXOR
$8006 constant notForeXOR
$0007 constant modeForeBIC
$8007 constant notForeBIC

( desk manager )
$0105 $0 $0 tool DeskBootInit
$0205 $0 $0 tool DeskStartUp
$0305 $0 $0 tool DeskShutDown
$0405 $1 $0 tool DeskVersion
$0505 $0 $0 tool DeskReset
$0605 $1 $0 tool DeskStatus
$1105 $0 $0 tool ChooseCDA
$1d05 $0 $0 tool CloseAllNDAs
$1605 $0 $1 tool CloseNDA
$1c05 $0 $2 tool CloseNDAbyWinPtr
$1e05 $0 $1 tool FixAppleMenu
$1405 $2 $0 tool GetDAStrPtr
$1b05 $1 $0 tool GetNumNDAs
$0f05 $0 $2 tool InstallCDA
$0e05 $0 $2 tool InstallNDA
$1505 $1 $1 tool OpenNDA
$0c05 $0 $0 tool RestAll
$0a05 $0 $0 tool RestScrn
$0b05 $0 $0 tool SaveAll
$0905 $0 $0 tool SaveScrn
$1305 $0 $4 tool SetDAStrPtr
$1705 $0 $5 tool SystemClick
$1805 $1 $1 tool SystemEdit
$1a05 $1 $8 tool SystemEvent
$1905 $0 $0 tool SystemTask

( event manager )
$0106 $0 $0 tool EMBootInit
$0206 $0 $7 tool EMStartUp
$0306 $0 $0 tool EMShutDown
$0406 $1 $0 tool EMVersion
$0506 $0 $0 tool EMReset
$0606 $1 $0 tool EMStatus
$0d06 $1 $1 tool Button
$0906 $1 $0 tool DoWindows
$0b06 $1 $3 tool EventAvail
$1906 $0 $5 tool FakeMouse
$1506 $1 $2 tool FlushEvents
$1206 $2 $0 tool GetCaretTime
$1106 $2 $0 tool GetDblTime
$0c06 $0 $2 tool GetMouse
$0a06 $1 $3 tool GetNextEvent
$1606 $1 $3 tool GetOSEvent
$1706 $1 $3 tool OSEventAvail
$1406 $1 $3 tool PostEvent
$1806 $0 $1 tool SetEventMask
$1306 $0 $0 tool SetSwitch
$0e06 $1 $1 tool StillDown
$1006 $2 $0 tool TickCount
$0f06 $1 $1 tool WaitMouseUp

( modifiers )
$0001 constant activeFlag
$0002 constant changeFlag
$0040 constant btn1State
$0080 constant btn0State
$0100 constant appleKey
$0200 constant shiftKey
$0400 constant capsLock
$0800 constant optionKey
$1000 constant controlkey
$2000 constant keyPad

( eventMask )
$0002 constant mDownMask   
$0004 constant mUpMask     
$0008 constant keyDownMask 
$0020 constant autoKeyMask 
$0040 constant updateMask  
$0100 constant activeMask  
$0200 constant switchMask  
$0400 constant deskAccMask 
$0800 constant driverMask  
$1000 constant app1Mask    
$2000 constant app2Mask    
$4000 constant app3Mask    
$8000 constant app4Mask    
$ffff constant everyEvent  

( apple desktop bus tool set )
$0109 $0 $0 tool ADBBootInit
$0209 $0 $0 tool ADBStartUp
$0309 $0 $0 tool ADBShutDown
$0409 $1 $0 tool ADBVersion
$0509 $0 $0 tool ADBReset
$0609 $1 $0 tool ADBStatus
\ $1009 tool AbsOff
\ $0f09 tool AbsOn
$0d09 $0 $3 tool AsyncADBReceive
$1609 $0 $0 tool ClearSRQTable
$1309 $0 $2 tool GetAbsScale
$1109 $1 $0 tool ReadAbs
$0a09 $0 $4 tool ReadKeyMicroData
$0b09 $0 $5 tool ReadKeyMicroMemory
$0909 $0 $4 tool SendInfo
$1209 $0 $2 tool SetAbsScale
$1409 $0 $3 tool SRQPoll
$1509 $0 $1 tool SRQRemove
$0e09 $0 $4 tool SyncADBReceive

( integer math tool set )
$010b $0 $0 tool IMBootInit
$020b $0 $0 tool IMStartUp
$030b $0 $0 tool IMShutDown
$040b $1 $0 tool IMVersion
$050b $0 $0 tool IMReset
$060b $1 $0 tool IMStatus
$280b $1 $4 tool Dec2Int
$290b $2 $4 tool Dec2Long
$1c0b $2 $2 tool Fix2Frac
$1b0b $2 $2 tool Fix2Long
$1e0b $0 $4 tool Fix2X
$170b $2 $4 tool FixATan2
$110b $2 $4 tool FixDiv
$0f0b $2 $4 tool FixMul
$0e0b $2 $2 tool FixRatio
$130b $1 $2 tool FixRound
$1d0b $2 $2 tool Frac2Fix
$1f0b $0 $4 tool Frac2X
$150b $2 $2 tool FracCos
$120b $2 $4 tool FracDiv
$100b $2 $4 tool FracMul
$160b $2 $2 tool FracSin
$140b $2 $2 tool FracSqrt
$240b $1 $3 tool Hex2Int
$250b $2 $3 tool Hex2Long
$2a0b $2 $1 tool HexIt
$180b $1 $2 tool HiWord
$260b $0 $5 tool Int2Dec
$220b $0 $4 tool Int2Hex
$270b $0 $6 tool Long2Dec
$1a0b $2 $2 tool Long2Fix
$230b $0 $5 tool Long2Hex
$0d0b $4 $4 tool LongDivide
$0c0b $4 $4 tool LongMul
$190b $1 $2 tool LoWord
$090b $2 $2 tool Multiply
$0a0b $2 $2 tool SDivide
$0b0b $2 $2 tool UDivide
$200b $2 $2 tool X2Fix
$210b $2 $2 tool X2Frac

( text tool set )
$010c $0 $0 tool TextBootInit
$020c $0 $0 tool TextStartUp
$030c $0 $0 tool TextShutdown
$040c $1 $0 tool TextVersion
$050c $0 $0 tool TextReset
$060c $1 $0 tool TextStatus
$160c $0 $2 tool CtlTextDev
$1f0c $0 $4 tool ErrWriteBlock
$190c $0 $1 tool ErrWriteChar
$210c $0 $2 tool ErrWriteCString
$1b0c $0 $2 tool ErrWriteLine
$1d0c $0 $2 tool ErrWriteString
$0e0c $2 $0 tool GetErrGlobals
$140c $3 $0 tool GetErrorDevice
$0c0c $2 $0 tool GetInGlobals
$120c $3 $0 tool GetInputDevice
$0d0c $2 $0 tool GetOutGlobals
$130c $3 $0 tool GetOutputDevice
$150c $0 $1 tool InitTextDev
$220c $1 $1 tool ReadChar
$240c $1 $5 tool ReadLine
$0b0c $0 $2 tool SetErrGlobals
$110c $0 $3 tool SetErrorDevice
$090c $0 $2 tool SetInGlobals
$0f0c $0 $3 tool SetInputDevice
$0a0c $0 $2 tool SetOutGlobals
$100c $0 $3 tool SetOutputDevice
$170c $0 $2 tool StatusTextDev
$230c $0 $5 tool TextReadBlock
$1e0c $0 $4 tool TextWriteBlock
$180c $0 $1 tool WriteChar
$200c $0 $2 tool WriteCString
$1a0c $0 $2 tool WriteLine
$1c0c $0 $2 tool WriteString

( window manager )
$010e $0 $0 tool WindBootInit
$020e $0 $1 tool WindStartUp
$030e $0 $0 tool WindShutDown
$040e $1 $0 tool WindVersion
$050e $0 $0 tool WindReset
$060e $1 $0 tool WindStatus
$1e0e $0 $2 tool BeginUpdate
$240e $0 $2 tool BringToFront
$0a0e $1 $2 tool CheckUpdate
$0b0e $0 $2 tool CloseWindow
$0c0e $2 $3 tool Desktop
$1a0e $0 $8 tool DragWindow
$510e $0 $0 tool EndInfoDrawing
$1f0e $0 $2 tool EndUpdate
$170e $1 $4 tool FindWindow
$150e $2 $0 tool FrontWindow
$480e $2 $2 tool GetContentDraw
$3e0e $2 $2 tool GetContentOrigin
$2f0e $2 $2 tool GetContentRgn
$400e $2 $2 tool GetDataSize
$310e $2 $2 tool GetDefProc
$520e $2 $0 tool GetFirstWindow
$100e $0 $4 tool GetFrameColor
$4a0e $2 $2 tool GetInfoDraw
$350e $2 $2 tool GetInfoRefCon
$420e $2 $2 tool GetMaxGrow
$2a0e $2 $2 tool GetNextWindow
$460e $2 $2 tool GetPage
$4f0e $0 $4 tool GetRectInfo
$440e $2 $2 tool GetScroll
$2e0e $2 $2 tool GetStructRgn
$4c0e $1 $2 tool GetSysWFlag
$300e $2 $2 tool GetUpdateRgn
$330e $2 $2 tool GetWControls
$2c0e $1 $2 tool GetWFrame
$2b0e $1 $2 tool GetWKind
$200e $2 $0 tool GetWMgrPort
$290e $2 $2 tool GetWRefCon
$0e0e $2 $2 tool GetWTitle
$370e $2 $2 tool GetZoomRect
$1b0e $2 $6 tool GrowWindow
$120e $0 $2 tool HideWindow
$220e $0 $3 tool HiliteWindow
$3a0e $0 $2 tool InvalRect
$3b0e $0 $2 tool InvalRgn
$190e $0 $4 tool MoveWindow
$090e $2 $2 tool NewWindow
$210e $2 $4 tool PinRect
$390e $0 $2 tool RefreshDesktop
$110e $0 $2 tool SelectWindow
$140e $0 $4 tool SendBehind
$490e $0 $4 tool SetContentDraw
$3f0e $0 $4 tool SetContentOrigin
$570e $0 $5 tool SetContentOrigin2
$410e $0 $4 tool SetDataSize
$320e $0 $4 tool SetDefProc
$0f0e $0 $4 tool SetFrameColor
$160e $0 $4 tool SetInfoDraw
$360e $0 $4 tool SetInfoRefCon
$430e $0 $4 tool SetMaxGrow
$340e $0 $3 tool SetOriginMask
$470e $0 $4 tool SetPage
$450e $0 $4 tool SetScroll
$4b0e $0 $2 tool SetSysWindow
$2d0e $0 $3 tool SetWFrame
$4e0e $2 $2 tool SetWindowIcons
$280e $0 $4 tool SetWRefCon
$0d0e $0 $4 tool SetWTitle
$380e $0 $4 tool SetZoomRect
$230e $0 $3 tool ShowHide
$130e $0 $2 tool ShowWindow
$1c0e $0 $4 tool SizeWindow
$4d0e $0 $2 tool StartDrawing
$500e $0 $4 tool StartInfoDrawing
$1d0e $1 $3 tool TaskMaster
$180e $1 $4 tool TrackGoAway
$260e $1 $4 tool TrackZoom
$3c0e $0 $2 tool ValidRect
$3d0e $0 $2 tool ValidRgn
$530e $2 $d tool WindDragRect
$250e $0 $0 tool WindNewRes
$560e $1 $1 tool WindowGlobal
$270e $0 $2 tool ZoomWindow

$590e $1 $5 tool AlertWindow
$600e $2 $6 tool CompileText
$550e $0 $2 tool DrawInfoBar
$5b0e $0 $0 tool EndFrameDrawing
$620e $1 $4 tool ErrorWindow
$580e $2 $0 tool GetWindowMgrGlobals
$610e $2 $c tool NewWindow2
$5c0e $0 $5 tool ResizeWindow
$5a0e $0 $2 tool StartFrameDrawing
\ $5d0e $x $x tool TaskMasterContent
$5f0e $1 $3 tool TaskMasterDA
\ $5e0e $x $x tool TaskMasterKey
\ $540e $x $x tool GDRPrivate

$640e $2 $9 tool DoModalWindow
$690e $1 $6 tool FindCursorCtl
$630e $2 $2 tool GetAuxWindInfo
$6b0e $2 $2 tool HandleDiskInsert
$650e $1 $0 tool MWGetCtlPart
$660e $2 $2 tool MWSetMenuProc
$680e $0 $0 tool MWSetUpEditMenu
$670e $0 $0 tool MWStdDrawProc
$6a0e $0 $4 tool ResizeInfoBar

struct
  word%  field TaskRec>wmWhat
  long%  field TaskRec>wmMessage
  long%  field TaskRec>wmWhen
  long%  field TaskRec>wmWhere
  word%  field TaskRec>wmModifiers
  long%  field TaskRec>wmTaskData
  long%  field TaskRec>wmTaskMask
  long%  field TaskRec>wmLastClickTick
  word%  field TaskRec>wmClickCount
  long%  field TaskRec>wmTaskData2
  long%  field TaskRec>wmTaskData3
  long%  field TaskRec>wmTaskData4
  point% field TaskRec>wmLastClickPtr
end-struct TaskRec%

$00100000 constant tmIdleEvents
$00080000 constant tmMultiClick
$00040000 constant tmControlMenu
$00020000 constant tmControlKey
$00010000 constant tmContentControls
$00008000 constant tmInfo
$00004000 constant tmInactive
$00002000 constant tmCRedraw
$00001000 constant tmSpecial
$00000800 constant tmScroll
$00000400 constant tmGrow
$00000200 constant tmZoom
$00000100 constant tmClose
$00000080 constant tmContent
$00000040 constant tmDragW
$00000020 constant tmSysClick
$00000010 constant tmOpenNDA
$00000008 constant tmMenuSel
$00000004 constant tmFindW
$00000002 constant tmUpdate
$00000001 constant tmMenuKey
$001f7fff constant tmAll

$0001 constant mouseDownEvt
$0002 constant mouseUpEvt
$0003 constant keyDownEvt
$0005 constant autoKeyEvt
$0006 constant updateEvt
$0008 constant activateEvt
$0009 constant switchEvt
$000a constant deskAccEvt
$000b constant driverEvt
$000c constant app1Evt
$000d constant app2Evt
$000e constant app3Evt
$000f constant app4Evt

$0000 constant inNull
$0003 constant inKey
$0001 constant inButtDwn
$0006 constant inUpdate

$0010 constant wInDesk
$0011 constant wInMenuBar
$0012 constant wClickCalled
$0013 constant wInContent
$0014 constant wInDrag
$0015 constant wInGrow
$0016 constant wInGoAway
$0017 constant wInZoom
$0018 constant wInInfo
$0019 constant wInSpecial
$001a constant wInDeskItem
$001b constant wInFrame
$001c constant wInactMenu
$001d constant wClosedNDA
$001e constant wCalledSysEdit
$001f constant wTrackZoom
$0020 constant wHitFrame
$0021 constant wInControl
$0022 constant wInControlMenu

$8000 constant wInSysWindow

( wFrameBits )
$8000 constant fTitle
$4000 constant fClose
$2000 constant fAlert
$1000 constant fRScroll
$0800 constant fBScroll
$0400 constant fGrow
$0200 constant fFlex
$0100 constant fZoom
$0080 constant fMove
$0040 constant fQContent
$0020 constant fVis
$0010 constant fInfo
$0008 constant fCtlTie
$0004 constant fAllocated
$0002 constant fZoomed
$0001 constant fHilited

( menu manager )
$010f $0 $0 tool MenuBootInit
$020f $0 $2 tool MenuStartUp
$030f $0 $0 tool MenuShutDown
$040f $1 $0 tool MenuVersion
$050f $0 $0 tool MenuReset
$060f $1 $0 tool MenuStatus
$1c0f $0 $3 tool CalcMenuSize
$320f $0 $2 tool CheckMItem
$140f $1 $1 tool CountMItems
$0e0f $0 $1 tool DeleteMenu
$100f $0 $1 tool DeleteMItem
$310f $0 $1 tool DisableMItem
$2e0f $0 $2 tool DisposeMenu
$2a0f $0 $0 tool DrawMenuBar
$300f $0 $1 tool EnableMItem
$130f $1 $0 tool FixMenuBar
$0c0f $0 $0 tool FlashMenuBar
$180f $2 $0 tool GetBarColors
$0a0f $2 $0 tool GetMenuBar
$200f $1 $1 tool GetMenuFlag
$1b0f $2 $0 tool GetMenuMgrPort
$220f $2 $1 tool GetMenuTitle
$160f $2 $1 tool GetMHandle
$250f $2 $1 tool GetMItem
$270f $1 $1 tool GetMItemFlag
$340f $1 $1 tool GetMItemMark
$360f $1 $1 tool GetMItemStyle
$1a0f $1 $0 tool GetMTitleStart
$1e0f $1 $1 tool GetMTitleWidth
$110f $2 $0 tool GetSysBar
$2c0f $0 $2 tool HiliteMenu
$2f0f $0 $0 tool InitPalette
$0d0f $0 $3 tool InsertMenu
$0f0f $0 $4 tool InsetMItem
$230f $1 $1 tool MenuGlobal
$090f $0 $4 tool MenuKey
$290f $0 $0 tool MenuNewRes
$0b0f $0 $2 tool MenuRefresh
$2b0f $0 $4 tool MenuSelect
$2d0f $2 $2 tool NewMenu
$150f $2 $2 tool NewMenuBar
$170f $0 $3 tool SetBarColors
$390f $0 $2 tool SetMenuBar
$1f0f $0 $2 tool SetMenuFlag
$370f $0 $2 tool SetMenuID
$210f $0 $3 tool SetMenuTitle
$240f $0 $3 tool SetMItem
$280f $0 $1 tool SetMItemBlink
$260f $0 $2 tool SetMItemFlag
$380f $0 $2 tool SetMItemID
$330f $0 $2 tool SetMItemMark
$3a0f $0 $3 tool SetMItemName
$350f $0 $2 tool SetMItemStyle
$190f $0 $1 tool SetMTitleStart
$1d0f $0 $2 tool SetMTitleWidth
$120f $0 $2 tool SetSysBar

$3b0f $2 $0 tool GetPopUpDefProc
$450f $0 $0 tool HideMenuBar
$3f0f $0 $5 tool InsertMItem2
$3e0f $2 $3 tool NewMenu2
$430f $2 $5 tool NewMenuBar2
$3c0f $1 $6 tool PopUpMenuSelect
$400f $0 $4 tool SetMenuTitle2
$410f $0 $4 tool SetMItem2
$420f $0 $4 tool SetMItemName2
$460f $0 $0 tool ShowMenuBar

( MenuFlag masks )
$0004 constant mInvis
$0010 constant mCustom
$0020 constant mXor
$0040 constant mSelected
$0080 constant mDisabled

( SetMenuFlag )
$ff7f constant enableMenu
$0080 constant disableMenu
$ffdf constant colorReplace
$0020 constant xorTitleHilite
$ffef constant standardMenu
$0010 constant customMenu

( control manager )
$0110 $0 $0 tool CtlBootInit
$0210 $0 $2 tool CtlStartUp
$0310 $0 $0 tool CtlShutDown
$0410 $1 $0 tool CtlVersion
$0510 $0 $0 tool CtlReset
$0610 $1 $0 tool CtlStatus
$1210 $0 $0 tool CtlNewRes
$0a10 $0 $2 tool DisposeControl
$1710 $0 $9 tool DragControl
$1d10 $2 $d tool DragRect
$1010 $0 $2 tool DrawControls
$2510 $0 $2 tool DrawOneCtl
$2410 $0 $2 tool EraseControl
$1310 $1 $6 tool FindControl
$2110 $2 $2 tool GetCtlAction
$1f10 $1 $0 tool GetCtlDpage
$1c10 $2 $2 tool GetCtlParams
$2310 $2 $2 tool GetCtlRefCon
$0d10 $2 $2 tool GetCtlTitle
$1a10 $1 $2 tool GetCtlValue
$1e10 $2 $0 tool GrowSize
$0e10 $0 $2 tool HideControl
$1110 $0 $3 tool HiliteControl
$0b10 $0 $2 tool KillControls
$1610 $0 $4 tool MoveControl
$0910 $2 $10 tool NewControl
$2010 $0 $4 tool SetCtlAction
$1810 $2 $2 tool SetCtlIcons
$1b10 $0 $4 tool SetCtlParams
$2210 $0 $4 tool SetCtlRefCon
$0c10 $0 $4 tool SetCtlTitle
$1910 $0 $3 tool SetCtlValue
$0f10 $0 $2 tool ShowControl
$1410 $1 $4 tool TestControl
$1510 $1 $6 tool TrackControl

$2c10 $2 $5 tool CallCtlDefProc
$3210 $2 $3 tool CMLoadResource
$3310 $0 $3 tool CMReleaseResource
$2610 $2 $0 tool FindTargetControl
$3010 $2 $4 tool GetCtlHandleFromID
$2a10 $2 $2 tool GetCtlID
$2e10 $1 $2 tool GetCtlMoreFlags
$3510 $2 $0 tool GetCtlParamPtr
$3710 $0 $2 tool InvalCtls
$2710 $2 $0 tool MakeNextCtlTarget
$2810 $0 $2 tool MakeThisCtlTarget
$3110 $2 $5 tool NewControl2
$2d10 $0 $6 tool NotifyCtls
$2910 $1 $5 tool SendEventsToCtl
$2b10 $0 $4 tool SetCtlID
$2f10 $0 $3 tool SetCtlMoreFlags
$3410 $0 $2 tool SetCtlParamPtr

$3910 $1 $3 tool FindRadioButton
$3b10 $0 $6 tool GetLETextByID
$3a10 $0 $6 tool SetLETextByID

( quickdraw ii auxiliary )
$0112 $0 $0 tool QDAuxBootInit
$0212 $0 $0 tool QDAuxStartUp
$0312 $0 $0 tool QDAuxShutDown
$0412 $1 $0 tool QDAuxVersion
$0512 $0 $0 tool QDAuxReset
$0612 $1 $0 tool QDAuxStatus
$b904 $0 $0 tool ClosePixture
$0912 $0 $b tool CopyPixels
$0b12 $0 $5 tool DrawIcon
$ba04 $0 $4 tool DrawPicture
$bb04 $0 $2 tool KillPicture
$b704 $2 $2 tool OpenPicture
$b804 $0 $4 tool PicComment
$0a12 $0 $0 tool WaitCursor

( print manager )
$0113 $0 $0 tool PMBootInit
$0213 $0 $2 tool PMStartUp
$0313 $0 $0 tool PMShutDown
$0413 $1 $0 tool PMVersion
$0513 $0 $0 tool PMReset
$0613 $1 $0 tool PMStatus
$1613 $1 $0 tool PrChoosePrinter
$0f13 $0 $2 tool PrCloseDoc
$1113 $0 $2 tool PrClosePage
$0913 $0 $2 tool PrDefault
$2313 $1 $0 tool PrDriverVer
$1413 $1 $0 tool PrError
$0c13 $1 $2 tool PrJobDialog
$0e13 $2 $4 tool PrOpenDoc
$1013 $0 $4 tool PrOpenPage
$1213 $0 $6 tool PrPicFile
$0d13 $0 $5 tool PrPixelMap
$2413 $1 $0 tool PrPortVer
$1513 $0 $1 tool PrSetError
$0b13 $1 $2 tool PrStlDialog
$0a13 $1 $2 tool PrValidate

$3513 $0 $1 tool PMLoadDriver
$3413 $0 $1 tool PMUnloadDriver
$3613 $2 $0 tool PrGetDocName
$3813 $1 $2 tool PrGetPgOrientation
$1813 $2 $0 tool PrGetPrinterSpecs
$1713 $0 $2 tool PrSetDocName

$2b13 $2 $0 tool PrGetNetworkName
$2913 $2 $0 tool PrGetPortDvrName
$2813 $2 $0 tool PrGetPrinterDvrName
$2a13 $2 $0 tool PrGetUserName
$2513 $2 $0 tool PrGetZoneName

( line edit )
$0114 $0 $0 tool LEBootInit
$0214 $0 $2 tool LEStartUp
$0314 $0 $0 tool LEShutDown
$0414 $1 $0 tool LEVersion
$0514 $0 $0 tool LEReset
$0614 $1 $0 tool LEStatus
$0f14 $0 $2 tool LEActivate
$0d14 $0 $4 tool LEClick
$1314 $0 $2 tool LECopy
$1214 $0 $2 tool LECut
$1014 $0 $2 tool LEDeactivate
$1514 $0 $2 tool LEDelete
$0a14 $0 $2 tool LEDispose
$1914 $0 $0 tool LEFromScrap
$1c14 $1 $0 tool LEGetScrapLen
$2214 $2 $2 tool LEGetTextHand
$2314 $1 $2 tool LEGetTextLen
$0c14 $0 $2 tool LEIdle
$1614 $0 $5 tool LEInsert
$1114 $0 $4 tool LEKey
$0914 $2 $5 tool LENew
$1414 $0 $2 tool LEPaste
$1b14 $2 $0 tool LEScrapHandle
$1f14 $0 $4 tool LESetCaret
$1e14 $0 $4 tool LESetHilite
$2114 $0 $3 tool LESetJust
$1d14 $0 $1 tool LESetScrapLen
$0e14 $0 $4 tool LESetSelect
$0b14 $0 $5 tool LESetText
$1814 $0 $6 tool LETextBox
$2014 $0 $6 tool LETextBox2
$1a14 $0 $0 tool LEToScrap
$1714 $0 $2 tool LEUpdate

( dialog manager )
$0115 $0 $0 tool DialogBootInit
$0215 $0 $1 tool DialogStartUp
$0315 $0 $0 tool DialogShutDown
$0415 $1 $0 tool DialogVersion
$0515 $0 $0 tool DialogReset
$0615 $1 $0 tool DialogStatus
$1715 $1 $4 tool Alert
$1a15 $1 $4 tool CautionAlert
$0c15 $0 $2 tool CloseDialog
$3615 $1 $6 tool DefaultFilter
$1115 $1 $6 tool DialogSelect
$3915 $0 $3 tool DisableDItem
$1315 $0 $2 tool DlgCopy
$1215 $0 $2 tool DlgCut
$1515 $0 $2 tool DlgDelete
$1415 $0 $2 tool DlgPaste
$1615 $0 $2 tool DrawDialog
$3a15 $0 $3 tool EnableDItem
$0915 $0 $2 tool ErrorSound
$2415 $1 $4 tool FindDItem
$3415 $1 $0 tool GetAlertStage
$1e15 $2 $3 tool GetControlDItem
$3715 $1 $2 tool GetDefButton
$2815 $0 $5 tool GetDItemBox
$2615 $1 $3 tool GetDItemType
$2e15 $1 $3 tool GetDItemValue
$2a15 $1 $2 tool GetFirstDItem
$1f15 $0 $5 tool GetIText
$3315 $0 $4 tool GetNewDItem
$3215 $2 $2 tool GetNewModalDialog
$2b15 $1 $3 tool GetNextDItem
$2215 $0 $3 tool HideDItem
$1015 $1 $2 tool IsDialogEvent
$0f15 $1 $2 tool ModalDialog
$1c15 $2 $2 tool ModalDialog2
$0d15 $0 $c tool NewDItem
$0a15 $2 $5 tool NewModalDialog
$0b15 $2 $b tool NewModelessDialog
$1915 $1 $4 tool NoteAlert
$1b15 $0 $8 tool ParamText
$0e15 $0 $3 tool RemoveDItem
$3515 $0 $0 tool ResetAlertStage
$2115 $0 $5 tool SelectIText
$1c15 $0 $2 tool SetDAFont
$3815 $0 $3 tool SetDefButton
$2915 $0 $5 tool SetDItemBox
$2715 $0 $4 tool SetDItemType
$2f15 $0 $4 tool SetDItemValue
$2015 $0 $5 tool SetIText
$2315 $0 $3 tool ShowDItem
$1815 $1 $4 tool StopAlert
$2515 $0 $4 tool UpdateDialog

( standard file operations )
$0117 $0 $0 tool SFBootInit
$0217 $0 $2 tool SFStartUp
$0317 $0 $0 tool SFShutDown
$0417 $1 $0 tool SFVersion
$0517 $0 $0 tool SFReset
$0617 $1 $0 tool SFStatus
$0d17 $0 $1 tool SFAllCaps
$0917 $0 $a tool SFGetFile
$0b17 $0 $e tool SFPGetFile
$0c17 $0 $d tool SFPPutFile
$0a17 $0 $9 tool SFPutFile
$0e17 $0 $b tool SFGetFile2
$1417 $0 $b tool SFMultiGet2
$1017 $0 $11 tool SFPGetFile2
$1517 $0 $11 tool SFPMultiGet2
$1117 $0 $10 tool SFPPutFile2
$0f17 $0 $a tool SFPutFile2
$1317 $0 $4 tool SFReScan
$1217 $1 $1 tool SFShowInvisible

struct
  word% field reply>good
  word% field reply>fileType
  long% field reply>auxType
  word% field reply>nameRefDesc
  long% field reply>nameRef
  word% field reply>pathRefDesc
  long% field reply>pathRef
end-struct reply%

( list manager )
$011c $0 $0 tool ListBootInit
$021c $0 $0 tool ListStartUp
$031c $0 $0 tool ListShutDown
$041c $1 $0 tool ListVersion
$051c $0 $0 tool ListReset
$061c $1 $0 tool ListStatus
$091c $2 $4 tool CreateList
$0c1c $0 $4 tool DrawMember
$0e1c $2 $0 tool GetListDefProc
$101c $0 $4 tool NewList
$0b1c $2 $4 tool NextMember
$0f1c $2 $2 tool ResetMember
$0d1c $0 $4 tool SelectMember
$0a1c $0 $4 tool SortList

$111c $0 $3 tool DrawMember2
$161c $0 $9 tool NewList2
$121c $1 $3 tool NextMember2
$131c $1 $2 tool ResetMember2
$141c $0 $3 tool SelectMember2
$151c $0 $4 tool SortList2

( resource manager )
$011e $0 $0 tool ResourceBootInit
$021e $0 $1 tool ResourceStartUp
$031e $0 $0 tool ResourceShutDown
$041e $1 $0 tool ResourceVersion
$051e $0 $0 tool ResourceReset
$061e $1 $0 tool ResourceStatus
$0c1e $0 $6 tool AddResource
$0b1e $0 $1 tool CloseResourceFile
$221e $2 $1 tool CountResources
$201e $1 $0 tool CountTypes
$091e $0 $6 tool CreateResourceFile
$181e $0 $3 tool DetachResource
$141e $1 $0 tool GetCurResourceApp
$121e $1 $0 tool GetCurResourceFile
$231e $2 $3 tool GetIndResource
$211e $1 $1 tool GetIndType
$261e $2 $1 tool GetMapHandle
$1f1e $1 $1 tool GetOpenFileRefNum
$1b1e $1 $3 tool GetResourceAttr
$1d1e $2 $3 tool GetResourceSize
$151e $1 $3 tool HomeResourceFile
$271e $2 $7 tool LoadAbsResource
$0e1e $2 $3 tool LoadResource
$101e $0 $4 tool MarkResourceChange
$1e1e $0 $4 tool MatchResourceHandle
$0a1e $1 $5 tool OpenResourceFile
$171e $0 $4 tool ReleaseResource
$0f1e $0 $3 tool RemoveResource
$281e $0 $4 tool ResourceConverter
$131e $0 $1 tool SetCurResourceApp
$111e $0 $1 tool SetCurResourceFile
$1c1e $0 $4 tool SetResourceAttr
$251e $1 $1 tool SetResourceFileDepth
$1a1e $0 $5 tool SetResourceID
$241e $1 $1 tool SetResourceLoad
$191e $2 $2 tool UniqueResourceID
$0d1e $0 $1 tool UpdateResourceFile
$161e $0 $3 tool WriteResource

( resource manager errors )
$1e01 constant resForkUsed
$1e02 constant resBadFormat
$1e03 constant resNoConverter
$1e04 constant resNoCurFile
$1e05 constant resDupID
$1e06 constant resNotFound
$1e07 constant resFileNotFound
$1e08 constant resBadAppID
$1e09 constant resNoUniqueID
$1e0a constant resIndexRange
$1e0b constant resSysIsOpen
$1e0c constant resHasChanged
$1e0d constant resDiffConverter
$1e0e constant resDiskFull

( marinetti )
$0136 $0 $0 tool TCPIPBootInit
$0236 $0 $0 tool TCPIPStartUp
$0336 $0 $0 tool TCPIPShutDown
$0436 $1 $0 tool TCPIPVersion
$0536 $0 $0 tool TCPIPReset
$0636 $1 $0 tool TCPIPStatus
$0836 $2 $0 tool TCPIPLongVersion
$0936 $1 $0 tool TCPIPGetConnectStatus
$0a36 $2 $0 tool TCPIPGetErrorTable
$0b36 $1 $0 tool TCPIPGetReconnectStatus
$0c36 $0 $2 tool TCPIPReconnect
$0f36 $2 $0 tool TCPIPGetMyIPAddress
$1036 $1 $0 tool TCPIPGetConnectMethod
$1136 $0 $1 tool TCPIPSetConnectMethod
$1236 $0 $2 tool TCPIPConnect
$1336 $0 $3 tool TCPIPDisconnect
$1436 $1 $0 tool TCPIPGetMTU
$1636 $2 $2 tool TCPIPGetConnectData
$1736 $0 $3 tool TCPIPSetConnectData
$1836 $2 $2 tool TCPIPGetDisconnectData
$1936 $0 $3 tool TCPIPSetDisconnectData
$1a36 $0 $0 tool TCPIPLoadPreferences
$1b36 $0 $0 tool TCPIPSavePreferences
$1e36 $2 $0 tool TCPIPGetTuningTable
$1f36 $0 $2 tool TCPIPSetTuningTable
$4236 $1 $0 tool TCPIPGetConnectMsgFlag
$4336 $0 $1 tool TCPIPSetConnectMsgFlag
$4436 $0 $2 tool TCPIPGetUsername
$4536 $0 $2 tool TCPIPSetUsername
$4636 $0 $2 tool TCPIPGetPassword
$4736 $0 $2 tool TCPIPSetPassword
$4a36 $2 $0 tool TCPIPGetLinkVariables
$4b36 $0 $4 tool TCPIPEditLinkConfig
$4c36 $2 $0 tool TCPIPGetModuleNames
$5136 $0 $2 tool TCPIPGetHostName
$5236 $0 $2 tool TCPIPSetHostName
$5436 $0 $2 tool TCPIPGetLinkLayer
$5736 $2 $1 tool TCPIPGetAuthMessage
$5a36 $1 $0 tool TCPIPGetAliveFlag
$5b36 $0 $1 tool TCPIPSetAliveFlag
$5c36 $1 $0 tool TCPIPGetAliveMinutes
$5d36 $0 $1 tool TCPIPSetAliveMinutes
$5f36 $1 $0 tool TCPIPGetBootConnectFlag
$6036 $0 $1 tool TCPIPSetBootConnectFlag

$1c36 $0 $2 tool TCPIPGetDNS
$1d36 $0 $2 tool TCPIPSetDNS
$2036 $0 $2 tool TCPIPCancelDNR
$2136 $0 $4 tool TCPIPDNRNameToIP

$2236 $0 $0 tool TCPIPPoll
$4036 $0 $2 tool TCPIPSendIPDatagram

$2336 $1 $6 tool TCPIPLogin
$2436 $0 $1 tool TCPIPLogout
$2536 $0 $4 tool TCPIPSendICMP
$2636 $0 $4 tool TCPIPSendUDP
$2736 $1 $2 tool TCPIPGetDatagramCount
$2836 $2 $3 tool TCPIPGetNextDatagram
$2936 $1 $0 tool TCPIPGetLoginCount
$2a36 $0 $2 tool TCPIPSendICMPEcho
$2b36 $1 $1 tool TCPIPReceiveICMPEcho
$5336 $0 $3 tool TCPIPStatusUDP
$6136 $0 $2 tool TCPIPSetUDPDispatch

$2c36 $1 $1 tool TCPIPOpenTCP
$4e36 $1 $1 tool TCPIPListenTCP
$2d36 $1 $7 tool TCPIPWriteTCP
$2e36 $1 $8 tool TCPIPReadTCP
$5e36 $1 $a tool TCPIPReadLineTCP
$2f36 $1 $1 tool TCPIPCloseTCP
$3036 $1 $1 tool TCPIPAbortTCP
$3136 $1 $3 tool TCPIPStatusTCP
$4f36 $1 $2 tool TCPIPAcceptTCP

$3236 $1 $1 tool TCPIPGetSourcePort
$3336 $1 $1 tool TCPIPGetTOS
$3436 $0 $2 tool TCPIPSetTOS
$3536 $1 $1 tool TCPIPGetTTL
$3636 $0 $2 tool TCPIPSetTTL
$3736 $0 $2 tool TCPIPSetSourcePort
$4936 $2 $2 tool TCPIPGetUserStatistic
$5036 $0 $4 tool TCPIPSetNewDestination
$6236 $0 $3 tool TCPIPGetDestination

$0d36 $0 $4 tool TCPIPConvertIPToHex
$3f36 $0 $4 tool TCPIPConvertIPCToHex
$0e36 $1 $5 tool TCPIPConvertIPToASCII
$5836 $1 $5 tool TCPIPConvertIPToCASCII
$4136 $1 $2 tool TCPIPConvertIPToClass
$5936 $1 $3 tool TCPIPMangleDomainName
$5536 $0 $6 tool TCPIPPtrToPtr
$5636 $0 $6 tool TCPIPPtrToPtrNeg
$4836 $1 $2 tool TCPIPValidateIPString
$1536 $1 $2 tool TCPIPValidateIPCString

( type of service )
$0010 constant tosMinDelay
$0008 constant tosMaxThroughput
$0004 constant tosMaxReliability
$0002 constant tosMinMonentaryCost

( tool errors )
$0000 constant terrOK
$3601 constant terrBADIPID
$3602 constant terrNOCONNECTION
$3603 constant terrNORECONDATA
$3604 constant terrLINKERROR
$3605 constant terrSCRIPTFAILED
$3606 constant terrCONNECTED
$3607 constant terrSOCKETOPEN
$3608 constant terrINITNOTFOUND
$3609 constant terrVERSIONMISMATCH
$360a constant terrBADTUNETABLELEN
$360b constant terrIPIDTABLEFULL
$360c constant terrNOICMPQUEUED
$360d constant terrLOGINSPENDING
$360e constant terrTCPIPNOTACTIVE
$360f constant terrNODNSERVERS
$3610 constant terrDNRBUSY
$3611 constant terrNOLINKLAYER
$3612 constant terrBADLINKLAYER
$3613 constant terrENJOYCOKE
$3614 constant terrNORECONSUPPORT
$3615 constant terrUSERABORTED
$3616 constant terrBADUSERPASS
$3617 constant terrBADPARAMETER
$3618 constant terrBADENVIRONMENT
$3619 constant terrNOINCOMING
$361a constant terrLINKBUSY
$361b constant terrNOLINKINTERFACE
$361c constant terrNOLINKRESPONSE
$361d constant terrNODNRPENDING
$361e constant terrBADALIVEMINUTES
$361f constant terrBUFFERTOOSMALL
$3620 constant terrNOTSERVER

( tcp logic errors )
$0000 constant tcperrOK
$0001 constant tcperrDeafDestPort
$0002 constant tcperrHostReset
$0003 constant tcperrConExists
$0004 constant tcperrConIllegal
$0005 constant tcperrNoResources
$0006 constant tcperrNoSocket
$0007 constant tcperrBadPrec
$0008 constant tcperrBadSec
$0009 constant tcperrBadConnection
$000a constant tcperrConClosing
$000b constant tcperrClosing
$000c constant tcperrConReset
$000d constant tcperrUserTimeout
$000e constant tcperrConRefused

( tcp states )
$0000 constant tcpsCLOSED
$0001 constant tcpsLISTEN
$0002 constant tcpsSYNSENT
$0003 constant tcpsSYNRCVD
$0004 constant tcpsESTABLISHED
$0005 constant tcpsFINWAIT1
$0006 constant tcpsFINWAIT2
$0007 constant tcpsCLOSEWAIT
$0008 constant tcpsLASTACK
$0009 constant tcpsCLOSING
$000a constant tcpsTIMEWAIT

( read response buffer )
struct
  long%   field rrBuff>rrBuffCount
  handle% field rrBuff>rrBuffHandle
  word%   field rrBuff>rrMoreFlag
  word%   field rrBuff>rrPushFlag
  word%   field rrBuff>rrUrgentFlag
end-struct rrBuff%

( status response buffer )
struct
  word% field srBuff>srState
  word% field srBuff>srNetworkError
  long% field srBuff>srSndQueued
  long% field srBuff>srRcvQueued
  long% field srBuff>srDestIP
  word% field srBuff>srDestPort
  word% field srBuff>srConnectType
  word% field srBuff>srAcceptCount
end-struct srBuff%

( dnr return buffer )
struct
  word% field dnrBuff>DNRStatus
  long% field dnrBuff>DNRIPaddress
end-struct dnrBuff%

( dnr status codes )
$0000 constant DNR_Pending
$0001 constant DNR_OK
$0002 constant DNR_Failed
$0003 constant DNR_NoDNSEntry
$0004 constant DNR_Cancelled

( ip conversion response buffer )
struct
  long% field cvtRec>cvtIPAddress
  word% field cvtRec>cvtPort
end-struct cvtRec%

